dom0/pvh: fix processing softirqs during memory map population
authorRoger Pau Monne <roger.pau@citrix.com>
Mon, 7 Feb 2022 11:20:08 +0000 (12:20 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 7 Feb 2022 17:41:24 +0000 (17:41 +0000)
commit10d33220f2363a21a52a394159118ab4ddaed50e
treebeb2814fc72dd9afeaf42bcb012a343850d3be78
parentf97c1abf2934e76fb69fabaf4f5ec04afa813816
dom0/pvh: fix processing softirqs during memory map population

Make sure softirqs are processed after every successful call to
guest_physmap_add_page. Even if only a single page is to be added,
it's unknown whether the p2m or the IOMMU will require splitting the
provided page into smaller ones, and thus in case of having to break
a 1G page into 4K entries the amount of time taken by a single of
those additions will be non-trivial. Stay on the safe side and check
for pending softirqs on every successful loop iteration.

Fixes: 5427134eae ('x86: populate PVHv2 Dom0 physical memory map')
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/dom0_build.c